Release 10.1A: OpenEdge Data Management:
Database Administration
Distributed transactions
A distributed transaction is a single transaction that updates two or more databases. The following scenario illustrates how inconsistencies can occur during a distributed transaction. A bank has two accounts, one on database
acct1and another on databaseacct2. The bank runs an application that starts a transaction to withdraw a sum of money fromacct1and deposit it intoacct2. To keep the accounts in balance, it is critical that both operations—the withdrawal and the deposit—succeed, or that they both fail. For example, ifacct1commits its part of the transaction andacct2does not, there is an inconsistency in the data, as shown in Figure 12–1.Figure 12–1: Data inconsistency
![]()
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |